import { RouteRecordRaw } from 'vue-router';
/** 入口 */
export const Main: RouteRecordRaw = {
	path: '/',
	name: 'Main',
	redirect: '/home',
};

/** 首页 */
export const Home: RouteRecordRaw = {
	path: '/home',
	name: 'home',
	component: () => import('@/views/home/index.vue'),
	meta: {
		icon: '',
		keepAlive: false,
		zhName: '首页',
		requiresAuth: true,
	},
};

/** 404 */
export const NotFound: RouteRecordRaw = {
	path: '/404',
	name: '404',
	component: () => import('@/views/404/index.vue'),
	meta: {
		icon: '',
		keepAlive: true,
		zhName: '404',
		requiresAuth: false,
	},
};

export default [Main, Home, NotFound];
